package cn.wp.common.core;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 框架自定义配置属性
 * Created by chenyb on 2019/09/24
 */
@ConfigurationProperties(prefix = "wp.common")
@Component
@Data
public class WpProperties {

    // 是否调试模式
    private boolean debugMode;

    // 是否记录日志到数据库
    private boolean logEnable;

    // 缓存组
    private String cacheGroup;

    // 系统错误邮件接收人
    private String[] emailDevops;
}
